import request from '@/utils/request'

// 查询会员配置列表
export function listVipconfig(query) {
  return request({
    url: '/ziliao/vipconfig/list',
    method: 'get',
    params: query
  })
}

// 查询会员配置详细
export function getVipconfig(id) {
  return request({
    url: '/ziliao/vipconfig/' + id,
    method: 'get'
  })
}

// 新增会员配置
export function addVipconfig(data) {
  return request({
    url: '/ziliao/vipconfig',
    method: 'post',
    data: data
  })
}

// 修改会员配置
export function updateVipconfig(data) {
  return request({
    url: '/ziliao/vipconfig',
    method: 'put',
    data: data
  })
}

// 删除会员配置
export function delVipconfig(id) {
  return request({
    url: '/ziliao/vipconfig/' + id,
    method: 'delete'
  })
}
